package Graph;

public class InterlacementVertex extends Vertex {
	private Graph piece;
	
	public InterlacementVertex(){
		super(0, "", "", null);
		piece = null;
	}
	
	public InterlacementVertex(Graph piece, String label){
		super(0, label, "", null);
		this.piece = piece;
	}
	
	public InterlacementVertex(Graph piece){
		super(0, "", "", null);
		this.piece = piece;
	}
	
	public InterlacementVertex(String new_label){
		 super(0, new_label,"");
		 this.piece = null;
	}
	public InterlacementVertex(int new_degree, String new_label){
		 super(new_degree,new_label,"");
		 this.piece = null;
	}
	
	public InterlacementVertex(int new_degree, String new_label,String new_color){
		super(new_degree, new_color, new_label);
		this.piece = null;
	}
	
	public InterlacementVertex(int new_degree, String new_label,String new_color, Graph piece){
		super(new_degree, new_color, new_label);
		this.piece = piece;
	}
	
	public String toString(){
		return super.toString();
	}
	public Graph getPiece(){
		return piece;
	}
	
	@Override
	public boolean equals(Object v) {
		if (v instanceof InterlacementVertex){
			if (((InterlacementVertex)v).getPiece().equals(this.piece)){
				return true;
			}
		}
		return false;
	}
}
